Skip to content

feat: add message archive system#8

Open
Chrisdbhr wants to merge 1 commit into
masterfrom
feature/message-archive
Open

feat: add message archive system#8
Chrisdbhr wants to merge 1 commit into
masterfrom
feature/message-archive

Conversation

@Chrisdbhr
Copy link
Copy Markdown
Collaborator

Summary

Automatic message archiving to SQLite with resilient backfill that never gives up.

  • Backfill paginates from newest to oldest across all text channels
  • When API returns empty (cold storage), retries with exponential backoff 60s → 30min
  • Retry loop runs forever in background until Discord returns data
  • Real-time capture of new messages after backfill
  • Filters: skips bots, messages ≤2 chars, non-letter-starting

New Files

  • src/Models/MessageRecord.cs — EF Core entity
  • src/Models/ArchiveDbContext.cs — SQLite DbContext
  • src/Services/MessageArchiveService.cs — Backfill + real-time + retry loop
  • src/Modules/ArchiveModule.cs — Slash commands
  • docker-compose.stage.yml — Isolated stage compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant